#pragma once
#include "IHandler.h"
#include "IMessageSystem.h"
#include "ISyncEventManager.h"

class AsyncAcceptHandler:public IAcceptHandler,public CObject
{
public:
	AsyncAcceptHandler(IMessageSystem::CallBack::OnAccept cb,void* ud){ m_Callback = cb;m_pUserData = ud;}
	
	void SetManager(ISyncEventManager* pManager) {m_pManager = pManager;}

	virtual void Success(IPumpService*);

private:
	IMessageSystem::CallBack::OnAccept m_Callback;
	void*							   m_pUserData;
	ISyncEventManager*				   m_pManager;
};